using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Sys_Info - 网站信息 - 对象继承类
    /// </summary>
    [MetadataType(typeof(SysInfoValidaTion))]
    public class SysInfo : ISysInfo<SysInfo>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class SysInfoValidaTion
       {

     

        /// <summary>
        /// webId
        /// </summary>
        [Display(Name ="系统Id")]
        [Required]
        [StringLength(36)]
        public String WebId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="名称")]
        [StringLength(200)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 网站问候语
        /// </summary>
        [Display(Name ="网站问候语")]
        [StringLength(200)]
        public String WelCome
        {
         get; set; 
        }


       
     

        /// <summary>
        /// Logo
        /// </summary>
        [Display(Name ="Logo")]
        [StringLength(36)]
        public String Logo
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 上传文件大小限制
        /// </summary>
        [Display(Name ="上传文件限制")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int FileUp
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
